import { Constant } from "../../Constant";
import { Main } from "../../Main";
import StateBase from "../StateBase";

export default class ClearLuckRecruitState extends StateBase {
    begin(preState: number): void {
        super.begin(preState);
        //console.log('ClearLuckRecruitState state--begin');
        const main = this.getUserData() as Main;
        // 清理幸运招募相关的状态
        main.secRoundRoles.forEach(e => e.node.active = false);
        main.roundTips[2].clear();
        main.mainFsm.goToState(Constant.MainState.LuckRoleEnter, main);
    }

    end(nextState: number): void {
        super.end(nextState);
       // console.log('ClearLuckRecruitState state--end');
    }
}
